using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class RootMotionControl : MonoBehaviour
{
    public Animator animator;
    private void Awake()
    {
        animator = GetComponent<Animator>();    
    }

    // Start is called before the first frame update
    private void OnAnimatorMove()
    {
        SendMessageUpwards("OnUpdateDeltaPosition", (object)animator.deltaPosition);

    }
}
